package com.lcb123.framework.service;

import com.lcb123.framework.domain.User;
import com.lcb123.framework.domain.UserCreateForm;
import org.springframework.web.multipart.MultipartFile;

import org.springframework.data.domain.Pageable;
import javax.servlet.http.HttpServletRequest;


/**
 * 用户服务网接口定义
 *
 * @author lcb
 *
 */
public interface UserService {

    User create(UserCreateForm form);

    User getUserByUsername(String username);

    Object uploadImage(MultipartFile file, HttpServletRequest request);

    User getCurrentUser();

    String getCurrentUsername();

    Object listAllUsers(Pageable p);

    Object getUserList(int current, int rowCount, String searchPhrase);

}
